<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/survey_magic.js"></script>

<h3>Create a new Survey:</h3><br />

<form action="/clients/add_survey" method="post" >
	Survey Name:
	<input name='data[Survey][name]' id="SurveyName" type="text" /><br />
	Return <input name='data[Survey][results_buffer]' id="SurveyResultsBuffer" type="text" value='1' size='3' style='width: auto;' /> results at time.<br />
	<input name='data[Survey][run_immed]' id="SurveyRunImmed" type="checkbox" value='1' />
	<label for="SurveyRunImmed">Run Immediately on Download?</label><br />
	<div id="alarms">
		<input type="hidden" id="numAlarms" value="0" />
	</div>
	<input type="button" value="Add Alarm" onclick="addAlarm()" /><br /><br />
	<input type="submit" name="redirect" value="Create Survey" />
</form>

<script language="javascript">
	document.getElementById("SurveyName").focus();
</script>
